<?php

include_once 'connection/connection_database.php';

class Tags {

    function FindAll() {
        $sql = "SELECT * FROM tags WHERE tag_status=1";
        $result = mysql_query($sql) or die(mysql_error());
        return $result;
    }
    
    function FindByTagName($tag_link){
        $sql = "SELECT * FROM tags WHERE tag_link='{$tag_link}' and tag_status=1";
        $result = mysql_query($sql) or die(mysql_error());
        return $result;
    }
}

?>
